package proxy.jdk;

public class Test {
    public static void main(String[] args) {
        BookFacadeImpl bookFacadeImpl = new BookFacadeImpl();
        BookFacadeProxy proxy = new BookFacadeProxy();
        BookFacade bookfacadeProxy = (BookFacade) proxy.getProxy(bookFacadeImpl);
        int sum = bookfacadeProxy.addNum(1, 3);
        System.out.println("sum=" + sum);
    }
}
